$(function(){
    function fixLine(ele) {
        ele.each(function() {
            var _this = $(this);
            var divH = _this.height();
            var $con = _this.find('.js_text'); //盒子里面需要一个p或者其他标签用于放内容，不需要限制高度
            var content = $con.attr('data-content');
            $con.text(content);
            while ($con.outerHeight() > divH) {
                $con.text($con.text().replace(/(\s)*([a-zA-Z0-9]+|\W)(\.\.\.)?$/, "..."));
            };
        });
    }
    fixLine($(".js_limit_text"));
})
<div class="txt js_limit_text" style="line-height:30px">
<a href="" class="js_text" data-content="[冰箱]Hisense laser TV installation foror different Hisense laser TV installation guidance for different">[冰箱]Hisense laser TV installation guidance for different Hisense laser TV installation guidance for different</a >
</div>